/**   
 * @Title: LocalCacheService.java 
 * @Package com.farms.base.cache 
 * @Description: TODO(用一句话描述该文件做什么) 
 * @author zjhua@hundsun.com   
 * @date 2016年4月29日 上午9:10:44 
 * @version V1.0   
 */
package com.medsoft.dlcache;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author zjhua
 *
 */
public interface LocalCacheService {

	public abstract CacheEntry getCacheEntry(String cacheName, String key);

	public abstract boolean saveCacheEntry(String cacheName, CacheEntry cacheEntry);

	public abstract boolean removeCacheEntry(String cacheName, String key);

	public abstract Map<String, CacheEntry> getCache(String cacheName);

	//这里业务上唯一有可能的就是某个字典直接整个替换
	public abstract boolean replaceCache(String cacheName,ConcurrentHashMap<String, CacheEntry> cache);
	
	public abstract boolean replaceCache(String cacheName,List<CacheEntry> cache);

}